﻿using System.Collections.Generic;
using ZilLion.Service.Core.DapperWrapper;
using ZilLion.Service.ZilLionOss.Domain.Entitys;

namespace ZilLion.Service.ZilLionOss.Domain.Repositorys.Interface
{
    public interface IOssCompanyInfoReponsitory
    {
        IList<OssCompanyInfoEntity> GetAllCompany();
        OssCompanyInfoEntity GetCompanyByKey(string key);
        void AddCompany(OssCompanyInfoEntity entity, UnitOfWork unit = null);
        void EditCompany(OssCompanyInfoEntity entity, UnitOfWork unit = null);
        void RemoveCompany(OssCompanyInfoEntity entity, UnitOfWork unit = null);
        void RemoveCompany(string companykey, UnitOfWork unit = null);
    }
}